<?php
$status  = isset($info['status'])?$info['status']:'';
$type    = isset($info['type'])?$info['type']:'';
?>
<div class="form-group ">
    <label class="col-lg-2 control-label" >上级分类</label>
    <div class="col-lg-3">
        <select class="form-control text" name="parent_id">
            <option value="0">/</option>
            <?php echo isset($info['selectCategorys'])?$info['selectCategorys']:'';?>
        </select>
    </div>
</div>
<div class="form-group ">
    <label class="col-lg-2 control-label" >类型</label>
    <div class="col-lg-3">
        <input type="radio" name="type" <?php echo empty($type)|$type==1?'checked':''?> value="0" > 普通分类
        <input type="radio" name="type" <?php echo $type === 0?'checked':''?>  value="1"> 导航分类
    </div>
</div>
<div class="form-group ">
    <label class="col-lg-2 control-label" >名称</label>
    <div class="col-lg-3">
        <input type="text" value="{$info.name ?? ''}" class="form-control" name="name">
    </div>
</div>
<div class="form-group ">
    <label class="col-lg-2 control-label" >排序</label>
    <div class="col-lg-3">
        <input type="text" value="{$info.list_order ?? 0}" class="form-control" name="list_order">
    </div>
</div>
<div class="form-group ">
    <label class="col-lg-2 control-label" >状态</label>
    <div class="col-lg-3">
        <input type="radio" name="status" <?php echo empty($status)|$status==1?'checked':''?> value="1" checked> 显示
        <input type="radio" name="status" <?php echo $status === 0?'checked':''?>   value="0"> 隐藏
    </div>
</div>
<div class="form-group ">
    <div class="col-md-3 col-md-offset-2">
        <p class="help-block help-block-error">

        </p>
    </div>
</div>

<div class="form-actions">
    <a class="col-lg-2"> </a>
    <!--<button type="submit" class="btn btn-primary active" >保存</button>-->
    <button type="button" class="btn btn-primary ajax-post " autocomplete="off">
        保存
    </button>
    <a class="btn btn-default active" href="JavaScript:history.go(-1)">返回</a>
</div>

